//
//  QLFilemanager.h
//  QLCustomCamera_Example
//
//  Created by 李强 on 2020/9/2.
//  Copyright © 2020 李强LiQ. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface QLFilemanager : NSObject

//document路径
+(NSString *)documentPath;
//caches路径
+(NSString *)cachesPath;
//文件夹路径
+(NSString *)folderPathWithName:(NSString *)folderName Path:(NSString *)path;
//计算压缩大小
+(CGFloat)fileSize:(NSURL *)path;
//清除缓存
+(BOOL)clearMemoryFile;
//取得视频封面
+(UIImage *)getThumbnailImage:(NSURL *)videoURL;
//取得视频封面路径
+(NSString *)getVideoCoverWithImage:(UIImage *)image AndName:(NSString *)imgName;
//获取视频时长
+(NSUInteger)durationWithVideo:(NSURL *)videoUrl;
//获得此目录下文件
+(NSArray *)listFilesInDirectoryAtPath:(NSString *)path deep:(BOOL)deep;

@end

NS_ASSUME_NONNULL_END
